--- a/libfs/devices.h	2013-03-18 21:35:10.000000000 +0100
+++ b/libfs/devices.h	2013-03-18 21:35:34.000000000 +0100
@@ -40,6 +40,8 @@
 #define ERROR_INVALID_PARAMETER	87
 #define ERROR_DISK_FULL		112
 
+#include <inttypes.h>
+
 struct stat;
 
 int ujfs_get_dev_size(FILE *, int64_t * size);
